
/**
 * Date:2021年9月16日下午7:22:12
 * Copyright (c) 2021, www.bwbroad.com All Rights Reserved.
 *
*/

package com.example.demo;

import java.io.IOException;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.SmartLifecycle;
import org.springframework.context.annotation.Configuration;

/**
 * Description: TODO <br/>
 * Date:     2021年9月16日 下午7:22:12 <br/>
 * @author   wangbing	 
 */
@Configuration
public class InitDbzm implements InitializingBean,SmartLifecycle{
	
	@Autowired
	private DbzmMysqlConnetor dbzmMysqlConnetor;
	
	@Override
	public void start() {
		try {
			dbzmMysqlConnetor.dbzConfig();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	@Override
	public void stop() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public boolean isRunning() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public void afterPropertiesSet() throws Exception {
		// TODO Auto-generated method stub
		
	}

}

